﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MJM.RPP.ComponentesNegocio;


namespace wRegPadron
{
    public partial class frmCamaras : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string usuario = Request.QueryString["user"].ToString();
                string pass = Request.QueryString["pass"].ToString();

                if (usuario.ToLower() == "ccardenas" || usuario.ToLower() == "alcalde" || usuario!="")
                {
                    rCamaras.DataSource = new CamaraCN().Listar();
                    rCamaras.DataBind();
                }
            }
        }
    }
}